package com.guo.model.function;

import java.util.function.Consumer;

public interface PresentOrElseHandle<T extends Object> {
    /**
     * 值不为空时执行消费操作
     * 值为空时执行其他操作
     */
    void presentOrElseHandle(Consumer<? extends T> consumer, Runnable runnable);
}
